<template>
  <div class="img-wrap flex-row">
    <div class="img" :style="{backgroundImage: 'url(http://image.jiaowawang.cn/'+item.goodsimg+')'}"></div>
    <div class="name">{{item.goodsname}}</div>
  </div>
</template>
<script>
  export default {
    props: {
      item: Object
    },
    data() {
      return{}
    },
    methods: {

    }
  }
</script>
<style lang="scss" scoped>
  .img-wrap{
    .img{
      width: 45px;
      height: 45px;
      background-size: cover;
    }
    .name{
      flex: 1;
      margin-left: 10px;
    }
  }
</style>


